package com.sw.c.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sw.c.pojo.entity.Role;
import com.sw.c.pojo.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    List<Role> getRoleId(Integer userId);

    List<Integer> getPermissionIds(Integer userId);
}
